import request from '@/utils/request'

// 连接示例
export const getAllPosts = () => request.get('/posts/getAllPost');

// 处理点赞逻辑
export const likePostApi = (id) => request.put(`/posts/${id}/like`);

// 处理收藏逻辑
export const collectApi = (id) => request.put(`/posts/${id}/collection`)